package com.hemerasolutions.v2trainer.dao;

/**
 * @author ryegros
 * Exception class for DAO operations, used to manipulate the database
 * object 
 * used in MobAdm WebServices
 */

public class ExceptionDao extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	private int code = 0;

	public ExceptionDao (String message){
		super(message);
	}

	public ExceptionDao (String message,int code){
		super(message);
		this.code = code;
	}

	
	public ExceptionDao (Throwable cause){
		super(cause);
	}

	public ExceptionDao (){
		super();
	}

	public  ExceptionDao (String message,Throwable cause){
		super(message,cause);
	}	
	
	public  ExceptionDao (String message,Throwable cause,int code){
		super(message,cause);
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}
	
}
